wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

INFRA Final Exam

Total questions: 92

Worksheet time: 1hrs 5mins

Name
Class
Date
1.

You are tasked with creating identical development environments for three teams. What is the key benefit of using Terraform in this situation?

a)

It automatically installs required applications.

b)

It enables repeatable, declarative infrastructure deployment.

c)

It guarantees 100% uptime of deployed services.

d)

It replaces the need for virtual machines.

2.

Which Terraform command checks your configuration files for syntax errors and builds an execution plan?

a)

terraform init

b)

terraform apply

c)

terraform plan

d)

terraform validate

3.

When storing Terraform state files remotely, which Azure resource would be most appropriate?

a)

Azure Virtual Machine

b)

Azure Blob Storage

c)

Azure SQL Database

d)

Azure Function App

4.

Your team has deployed a web application and wants to monitor HTTP request failures. Which Azure Monitor feature should you use?

a)

Log Analytics Agent

b)

Azure Resource Health

c)

Application Insights

d)

Network Watcher

5.

You’ve created an alert rule that triggers on high CPU usage. What action can you attach to notify your team?

a)

Create a new VM

b)

Send an email or trigger a Logic App

c)

Delete the resource group

d)

Reboot the server automatically

6.

What is the purpose of using Azure Monitor Logs?

a)

To schedule backups of resources

b)

To query and analyze telemetry data

c)

To install applications on VMs

d)

To provision alert rules

7.

You want to write a script that checks disk usage and emails a warning if usage exceeds 90%. Which tool is most appropriate?

a)

PowerShell

b)

Bash script using df and mail

c)

Python script using Flask

d)

Azure CLI with terraform apply

8.

In a Bash script, what does #!/bin/bash signify?

a)

It is a comment for documentation

b)

It tells the system to use Bash to interpret the script

c)

It initiates the script loop

d)

It defines a variable name

9.

Which command is used to append the output of a script to a log file?

a)

A. >

b)

B. cat

c)

C. >>

d)

D. print

10.

What PowerShell cmdlet creates a new virtual machine in Azure?

a)

New-VM

b)

Start-AzVM

c)

New-AzVM

d)

az vm create

11.

Which PowerShell command displays all currently running services?

a)

Get-AzVM

b)

Get-Service | Where-Object {$_.Status -eq 'Running'}

c)

Show-Services

d)

List-RunningServices

12.

You need to automate login to Azure in your script. What should you use?

a)

Manual login prompt

b)

Service Principal authentication

c)

SSH key authentication

d)

Azure AD login link

13.

What is the Shared Responsibility Model in cloud computing?

a)

The cloud provider manages all security

b)

Cloud provider and customer share responsibility for security and operations

c)

The customer handles all infrastructure

d)

Only users are responsible for data breaches

14.

Which AWS service controls access to other AWS resources?

a)

S3

b)

EC2

c)

IAM

d)

Lambda

15.

In Azure, which role allows full access to all resources?

a)

Reader

b)

Contributor

c)

Owner

d)

Developer

16.

You want to automate application deployment whenever code is pushed to a GitHub repository. Which service should you use?

a)

Azure Key Vault

b)

AWS CloudWatch

c)

GitHub Actions

d)

Azure Sentinel

17.

What is the purpose of a staging environment in a CI/CD pipeline?

a)

To store logs before production

b)

To test code before releasing to production

c)

To auto-scale virtual machines

d)

To create database backups

18.

Which file format is typically used to define CI/CD workflows in GitHub Actions?

a)

.json

b)

.yaml

c)

.html

d)

.ps1

19.

What is the purpose of a Python try/except block?

a)

To define an array

b)

To comment out code

c)

To catch and handle errors gracefully

d)

To format strings

20.

Which Python library is commonly used for making HTTP API requests?

a)

json

b)

requests

c)

httpd

d)

pyapi

21.

You wrote a script to gather metrics from Azure. What is one way to schedule it daily?

a)

Use git push

b)

Call it manually each morning

c)

Schedule it with a cron job or Azure Function timer

d)

Attach it to a VM boot process

22.

Which tool is used for configuration management across multiple machines?

a)

GitHub

b)

Ansible

c)

Terraform

d)

Bash

23.

What language is used for writing Ansible playbooks?

a)

Python

b)

YAML

c)

JSON

d)

PowerShell

24.

You are automating software installation across multiple Linux servers. What is one benefit of using Ansible?

a)

It requires an agent on each server

b)

It uses SSH and is agentless

c)

It can only be used in AWS

d)

It is limited to one server at a time

25.

A deployed web app is returning 403 Forbidden errors. What is the most likely root cause?

a)

Database outage

b)

Misconfigured permissions or access policies

c)

Server hardware failure

d)

VM is too small

26.

What is a first step in performing a root cause analysis?

a)

Add new firewall rules

b)

Redeploy the entire application

c)

Review logs and monitor metrics

d)

Change environment variables

27.

Your team discovers increased latency on your site. What tool helps you visualize performance over time?

a)

GitHub

b)

Visual Studio Code

c)

Azure Monitor or AWS CloudWatch

d)

Bicep

28.

Your Azure bill has increased suddenly. What tool can help you analyze the cost by service?

a)

Azure Backup

b)

Azure Marketplace

c)

Azure Cost Management + Billing

d)

Azure DevOps

29.

How can you reduce cloud costs on underused VMs?

a)

Add more CPUs

b)

Use auto-shutdown schedules or right-size the VM

c)

Increase VM tiers

d)

Duplicate the VM

30.

Which Terraform feature helps enforce cost efficiency across environments?

a)

Terraform Registry

b)

Terraform Apply

c)

Terraform Policies (Sentinel or Azure Policy)

d)

Terraform Import

31.

Your organization is migrating resources from Azure to AWS. Which IaC tool offers multi-cloud support?

a)

ARM Templates

b)

Terraform

c)

CloudFormation

d)

Azure DevOps Pipelines

32.

You’re setting up infrastructure provisioning across GCP and AWS. What makes Terraform well-suited for this?

a)

It can only be run from AWS

b)

It uses providers to abstract cloud-specific logic

c)

It only works with YAML

d)

It depends on manual approvals

33.

You want to deploy a serverless app using Python. What tool can help manage the deployment across multiple cloud environments?

a)

Azure Key Vault

b)

Serverless Framework

c)

VirtualBox

d)

GitLab CI

34.

Which of the following is an advantage of using GitHub Actions over manual scripting?

a)

Higher costs

b)

Integrated CI/CD with version control

c)

Less flexibility

d)

No support for branching

35.

You need to detect drift between Terraform configuration and actual cloud resources. What command helps?

a)

terraform init

b)

terraform plan

c)

terraform validate

d)

terraform destroy

36.

Your team is deploying resources across AWS and Azure using a single automation tool. What tool can manage both environments?

a)

AWS CloudFormation

b)

Terraform

c)

Azure Resource Manager

d)

Azure CLI

37.

The benefit of using remote backends for Terraform state is:

a)

Enables collaboration and state locking

b)

Reduces the need for version control

c)

Increases manual configuration

d)

Prevents infrastructure automation

38.

In a multi-cloud deployment, what is a major challenge when using platform-native IaC tools (like ARM or CloudFormation)?

a)

Cost

b)

Version control

c)

Lack of cross-platform compatibility

d)

Performance limitations

39.

You want to assign specific permissions to a group of users in Azure. What should you use?

a)

Access Control Lists

b)

Role-Based Access Control (RBAC)

c)

Security Groups

d)

Admin Console

40.

What is the least privilege principle?

a)

Denying all access by default

b)

Granting only the permissions required to perform a task

c)

Allowing admin access to all

d)

Removing read permissions by default

41.

In AWS, what IAM entity is best for applications that need temporary access?

a)

User

b)

Role

c)

Group

d)

Root

42.

What Azure resource is used to filter traffic to and from virtual machines?

a)

Firewall

b)

Network Security Group (NSG)

c)

Load Balancer

d)

Application Gateway

43.

Which AWS component is used for routing traffic within a VPC?

a)

Route Table

b)

Security Group

c)

Elastic Load Balancer

d)

Subnet

44.

Which AWS component is used to control the flow of traffic within a VPC?

a)

Route 53

b)

Security Group

c)

Route Table

d)

Internet Gateway

45.

What is the primary benefit of using a Virtual Private Network (VPN)?

a)

Faster connection

b)

Secure, encrypted communication over public networks

c)

Serverless deployment

d)

Free domain hosting

46.

What Azure service aggregates logs and metrics from multiple resources?

a)

Azure Monitor Alerts

b)

Log Analytics Workspace

c)

Azure Advisor

d)

Application Gateway

47.

Which AWS service provides centralized logging across accounts?

a)

CloudWatch Logs

b)

AWS CloudTrail

c)

EC2 Logs

d)

AWS Lambda Insights

48.

What is a benefit of implementing centralized logging?

a)

Faster VM performance

b)

Simplified troubleshooting and compliance tracking

c)

Reduced costs

d)

Hides audit records

49.

Which Windows tool allows you to manage services and check system logs?

a)

Event Viewer

b)

Power BI

c)

Disk Cleanup

d)

Netstat

50.

In Windows Server, what is Active Directory used for?

a)

Managing cloud deployments

b)

Centralized user authentication and resource management

c)

Encrypting hard drives

d)

Monitoring CPU

51.

What is an effective way to ensure recovery after a data center outage?

a)

Change access policies

b)

Use geo-redundant backups

c)

Shut down idle resources

d)

Increase VM size

52.

Which service provides backup and restore capabilities for VMs in Azure?

a)

Azure DevOps

b)

Azure Blob Storage

c)

Azure Backup

d)

Azure Policy

53.

What is RTO (Recovery Time Objective)?

a)

Time to install new resources

b)

Maximum acceptable downtime after failure

c)

Cost of storage

d)

Number of backups made

54.

Which tool would you use in Azure to store and manage secrets?

a)

Blob Storage

b)

Azure Monitor

c)

Azure Key Vault

d)

Azure Batch

55.

What is a best practice for managing secrets in source code?

a)

Use environment variables or secret management services

b)

Store them in plaintext

56.

Which of the following is a benefit of using managed identities?

a)

Requires manual credential rotation

b)

Automatically handles authentication between services

c)

Stores keys in GitHub

d)

Increases billing cost

57.

What is the purpose of Azure Policy?

a)

Scheduling backups

b)

Creating monitoring dashboards

c)

Enforcing governance rules on resources

d)

Launching virtual machines

58.

Which AWS service helps manage compliance and auditing?

a)

CloudWatch

b)

AWS Config

c)

AWS VPC

d)

EBS

59.

Why is tagging resources important for compliance?

a)

It reduces costs

b)

It helps track ownership, environment, and purpose

c)

It improves network speed

d)

It replaces identity roles

60.

You used AI to review Terraform code for cost inefficiencies. What type of AI use case is this?

a)

Natural language processing

b)

Intelligent cost optimization

c)

Chatbot integration

d)

Computer vision

61.

Which Azure tool helps estimate the cost of proposed resources?

a)

Azure Key Vault

b)

Azure Pricing Calculator

62.

You want to use AI to generate architectural diagrams from code. What type of AI task is this?

a)

Conversational AI

b)

Generative AI

c)

Sentiment analysis

d)

Classification

63.

During your capstone, your infrastructure wouldn’t deploy due to a quota limit. What should you do?

a)

Delete resources

b)

Contact support immediately

c)

Modify resources or request a quota increase

d)

Use a different cloud provider

64.

You used Bicep for deploying infrastructure. Why choose Bicep over ARM templates?

a)

Bicep has more features

b)

Bicep is simpler and more readable than JSON-based ARM

c)

Bicep can only deploy Linux

d)

ARM doesn’t support Azure resources

65.

Which of the following best demonstrates your understanding of cloud troubleshooting?

a)

Documenting failed deployments

b)

Adding animations to slides

c)

Explaining why the failure happened and how to fix it

d)

Asking ChatGPT to fix it

66.

What is one benefit of using Markdown for documentation?

a)

Lightweight formatting for easy readability and sharing

b)

It runs scripts

c)

It hides secrets

d)

It creates databases

67.

What tool is commonly used to track bugs and project tasks in tech teams?

a)

Outlook

b)

Jira

68.

Why is writing retrospectives or reflections valuable?

a)

It replaces need for documentation

b)

It helps capture lessons learned and continuous improvement

c)

It reduces team size

d)

It automatically fixes bugs

69.

What is the function of a CI/CD pipeline agent?

a)

Hosts cloud infrastructure

b)

Provides monitoring dashboards

c)

Executes automation tasks during pipeline runs

d)

Encrypts data in transit

70.

Which tool can trigger builds and deployments from GitHub?

a)

Notepad++

b)

GitHub Actions

c)

Visual Studio Code

d)

Wireshark

71.

How does using a version control system improve DevOps workflow?

a)

Increases cost

b)

Makes code proprietary

c)

Enables collaboration, rollback, and audit trails

d)

Removes the need for documentation

72.

Which of the following best describes Infrastructure as Code?

a)

Manual configuration

b)

Declarative definition of resources using code

c)

AI-generated documentation

d)

PowerShell modules

73.

What is the default port for HTTP traffic?

a)

443

b)

80

74.

Which cloud service model includes OS-level control?

a)

SaaS

b)

PaaS

c)

IaaS

d)

FaaS

75.

Which of the following best describes Azure DevOps?

a)

A. A cloud storage platform

b)

B. A set of development tools for CI/CD and collaboration

c)

C. A DNS resolver

d)

D. A Kubernetes clone

76.

Why should you avoid using hardcoded credentials?

a)

They reduce deployment time

b)

They increase security risk if exposed

c)

They help automation

d)

They speed up boot time

77.

What is a benefit of multifactor authentication (MFA)?

a)

It provides additional security beyond just a password

b)

It saves cost

c)

It enables admin access

d)

It improves encryption speed

78.

You need to allow public read-only access to a static website on Azure. What should you configure?

a)

Azure Function

b)

Azure AD Role

c)

Blob Storage static website with anonymous access

d)

Virtual Network

79.

What is a common benefit of separating front-end and back-end in a cloud app?

a)

It uses less bandwidth

b)

Improves scalability and security

c)

Reduces storage needs

d)

Simplifies billing

80.

What is a load balancer used for?

a)

Encrypting VMs

b)

Writing code

c)

Distributing traffic across multiple instances

d)

Caching DNS records

81.

Which of the following would make a good cloud capstone goal?

a)

Uploading a picture

b)

Automating VM deployment, securing access, and reducing cost

c)

Editing a video

d)

Installing software manually

82.

What is the purpose of tagging your resources in Azure?

a)

Gives them new IPs

b)

Deletes them faster

c)

Helps manage costs and ownership

d)

Improves encryption

83.

Which of the following tools can be used to deploy Bicep templates?

a)

GitHub CLI

b)

Azure CLI

c)

Jenkins

d)

VS Code only

84.

Which option best supports zero-downtime deployments?

a)

Manual upload

b)

Blue/Green Deployment Strategy

c)

Static hosting

d)

DNS cache flushing

85.

What’s one way to showcase professionalism in a final cloud project presentation?

a)

Using bright colors

b)

Clear, well-organized explanation with evidence and polished design

c)

Apologizing for bugs

d)

Reading slides verbatim

86.

In your Terraform project, you have accidentally deleted an EC2 resource outside of Terraform, and now you need to remove it from Terraform's state file to avoid conflicts. Which Terraform command should you use to remove the resource from the state file?

a)

terraform state remove aws_instance.example

b)

terraform state rm aws_instance.example

c)

terraform state delete aws_instance.example

d)

terraform state clean aws_instance.example

87.

Your organization has been managing AWS resources manually or with another tool, and now you are transitioning to using Terraform for infrastructure as code. You need to reference existing VPCs, subnets, and security groups that were created outside of Terraform to avoid duplicating infrastructure and ensure consistency. Which option is most suitable?

a)

By storing state files remotely.

b)

By defining output variables.

c)

By using version control for configuration files.

d)

By using data sources

88.

How would you define Terraform?

a)

A configuration management tool

b)

An orchestration tool

c)

An infrastructure as code tool

d)

A continuous integration tool

89.

A large part of cloud operations is automated. The process is known as

a)

Orchestration

b)

Web Service

c)

Component

d)

Management

90.

You have a devops team in your current organization structure. They are keen to know if there is any service available in AWS which can be used to manage infrastructure as code. Which of the following can be met with such a requirement.?

a)

Using AWS Cloudformation

b)

Using AWS Config

c)

Using AWS Inspector

d)

Using AWS Trusted Advisor

91.

Describe your new role - the job title, your job duties and specific technical skills that are directly related to your job.

4 lines
92.

In your visit to the company you will be working for, they described 5 Service Groups and 5 Client Groups. What are they?

4 lines