WorksheetsExamen Cloud / EPI / IoT4
Total questions: 60
Worksheet time: 31mins
Replace the AWS Management Console
When using PuTTY in the AWS Academy Labs, which connection method is used to access AWS EC2 instances?
SFTP (Secure File Transfer Protocol)
SSH (Secure Shell)
Which of the following parameters is NOT requested by the command entered in the CLI to connect to an EC2 instance?
Which feature lets you access the command line on an instance without using SSH?
Which type of information can AWS Systems Manager Inventory collect?
CloudTrail logs
CloudWatch metrics
Installed applications and software versions
VPC routing tables
Which AWS CLI command is used to create a new Amazon S3 bucket?
aws s3 create-bucket
aws s3api create-bucket
aws s3 create
aws s3api new-bucket
What is the purpose of AWS CloudFormation?
Store and retrieve data in AWS
Monitor application performance
Provide a user interface for AWS services
Create and manage AWS resources using code
Which AWS service is used for scalable object storage?
Amazon CloudFormation
Amazon CloudWatch
Amazon S3
Amazon EC2
What does the term 'scalability' refer to in cloud computing?
The ability to maintain security
The ability to reduce costs
The ability to manage load fluctuations by adding or removing resources
The ability to increase storage capacity
When running the S3 bucket creation command, what indicates that the operation was successful?
A CloudWatch alarm is created
A success message is displayed
The bucket becomes public automatically
A JSON response containing a Location name-value pair is displayed
When comparing "aws s3 cp" and "aws s3 sync", which command checks the source and destination to transfer only files that are new or have been modified, instead of copying everything again?
aws s3 cp, but only when used with --recursive option
aws s3 cp, because it always compares file timestamps
aws s3 sync, because it evaluates differences before transferring files
Both commands perform this comparison automatically
Which command is used to list all the S3 buckets in your AWS account?
aws s3 get-buckets
aws s3 show
aws s3 ls
aws s3 list
What is an Amazon Machine Image (AMI)?
A monitoring tool for AWS resources
A type of storage service in AWS
A database service offered by AWS
A template for creating EC2 instances
Which of the following is NOT a valid instance type for AWS EC2?
t2.nano
t2.micro
t3.xlarge
t2x.large
What is the primary benefit of using an AMI?
To reduce costs associated with storage
To quickly launch new EC2 instances with pre-configured settings
To manage user permissions on EC2 instances
To monitor the performance of EC2 instances
When selecting an EC2 instance type, which resource is NOT typically considered?
Disk I/O performance
Virtual CPUs
Memory
Operating system version
In the instance type name "t2", what does the letter 't' represent?
The instance family identifier
The instance generation
The memory size
The maximum CPU count
What does the number in an instance type name (for example, the 2 in t2) indicate?
The generation of the instance, where higher numbers are newer
A reference to the AWS Region in which the instance is created
The network performance level
The size of the instance
Which of the following is TRUE about created AMIs from existing instances?
They are automatically deleted after 24 hours
They cannot include EBS-backed storage
They replace the original EC2 instance
They can be used to launch multiple new EC2 instances
How many target groups can you attach to a single Application Load Balancer?
Only 1
Up to 5
Up to 50
There’s no strict low limit
Which of the following are NOT included in a Launch Template? (Choose TWO)
AMI ID
Instance Type
Security Groups
Load Balancer
Auto Scaling Group
Which of the following components are part of an Auto Scaling Group? (Choose Three)
Launch Template
Minimum, Maximum, and Desired instance counts
Scaling Policies
OS for the EC2 instances
CloudFormation tool
What feature of CloudWatch allows you to automatically take action based on metrics?
CloudTrail
Alarms
IAM Policies
EventBridge
Which AWS service can you use to install the CloudWatch Agent on EC2 instances?
AWS CloudTrail
AWS Lambda
AWS Config
AWS Systems Manager Run Command
What is the main purpose of JMESPath in AWS CLI commands?
Create resources
Filter and query JSON output from AWS CLI
Monitor metrics
Tag resources automatically
Which of the following is an example of a JMESPath query?
aws ec2 describe-instances --query 'Reservations[].Instances[].InstanceId'
aws ec2 create-instance --query 'InstanceId'
aws s3 cp file.txt --query 'Bucket'
aws iam list-users --query 'CreateUser'
Which of the following is a valid tag structure in AWS?
Key: Environment, Value: Production
Key: 123, Value: 1.0
Name = Project, Value = ERPSystem
Name = "Env", Value = "Staging"
What file formats can be used to write CloudFormation templates? (Choose TWO)
JSON
XML
YAML
TF
What is a "stack" in CloudFormation?
A collection of AWS accounts
A group of AWS resources
A CloudWatch dashboard
An IAM role
Which of the following is NOT a key component of a CloudFormation template?
Resources
Parameters
Inputs
Outputs
Why is indentation important in a CloudFormation YAML template?
It improves the performance of the resources being created
It defines the structure and hierarchy of the template
It replaces the need for parameters
It is required for comments
Which CloudFormation intrinsic function is used to reference another resource or parameter in YAML?
!Get
!Link
!Ref
!ImportValue
In a CloudFormation YAML file, how is a list of values correctly defined?
SecurityGroups: sg-12345, sg-67890
SecurityGroups:
- sg-12345
- sg-67890
SecurityGroups = [sg-12345, sg-67890]
SecurityGroups:
sg-12345
sg-67890
You have configured an EC2 instance with a web server and custom software. You want to launch identical instances later with the same configuration.
What should you do FIRST?
Create a snapshot of the root volume
Create an AMI from the EC2 instance
Save the instance configuration in CloudWatch
Add the instance to an Auto Scaling Group
You want your Auto Scaling Group to always launch instances with the same AMI, instance type, security groups, and user data.
Which AWS resource should define these settings?
Target Group
Load Balancer
CloudWatch Alarm
Launch Template
Your Auto Scaling Group has: Minimum = 2, Desired = 4, Maximum = 6.
One instance becomes unhealthy.
What will Auto Scaling do?
Reduce desired capacity to 3
Terminate all instances
Terminate the unhealthy instance and launch a new one to keep 4 instances
Do nothing
You want to be notified when EC2 CPU usage stays above 70% for 5 minutes.
Which CloudWatch feature should you use?
CloudWatch Alarm
CloudWatch Logs
CloudWatch Dashboard
CloudTrail
You need to collect memory usage and application logs from EC2 instances.
What must you install?
CloudTrail agent
CloudWatch Agent
Load Balancer access logs
AWS Console
You want to host a static website accessible publicly from an S3 bucket.
Which two actions are REQUIRED? (Choose TWO)
Enable versioning
Enable static website hosting
Attach a bucket policy allowing public read access
Enable CloudWatch Logs
Enable uploading data to the bucket
You want to deploy EC2 instances, S3 buckets and some other resources repeatedly in a consistent way.
What AWS service should you use?
AWS CLI scripts
AWS CloudFormation
AWS CloudWatch
AWS Systems Manager
Which metric is used MOST often to trigger Auto Scaling policies?
Disk Input/Output Operations Per Second
Network packets
CPU Utilization
Instance Health
You want to analyze application error messages generated by your EC2 instances.
Which CloudWatch feature should you use?
CloudWatch Logs
CloudWatch Metrics
CloudWatch Alarms
CloudTrail
You update a CloudFormation template to add a new EC2 instance.
What happens when you update the stack?
All existing resources are deleted
Only the new resource is created while existing ones remain unchanged
All existing resources are recreated
The stack fails automatically because we must create a new template
What happens by default when the update of a CloudFormation stack fails?
New resources remain partially created
The stack is deleted
CloudFormation rolls back to the previous stable state
The update continues anyway
You want to create multiple EC2 instances with the same OS, applications, and configuration.
Which is the BEST choice?
AMI
EBS Snapshot
Instance type
Launch Template
Which part of the following command defines the ACTION to perform?
aws ec2 stop-instances --instance-id i-1234567 --output json
ec2
stop-instances
--instance-id i-1234567
--output json
What are the possible states of an Awazon Cloudwatch Alarm? (Choose THREE)
In alarm
OK
Insufficient Data
Terminated
Idle
Whch AWS service enables you to build a script-like template that represents a group of AWS resources, and that can be used to launch precisely defined environments on AWS?
AWS CloudFormation
AWS EC2
Custom AMIs
AWS Launch Templates
Which CloudWatch component does an alarm monitor?
Logs
Events
Metrics
Dashboards
Which of the following is a valid action for a CloudWatch Alarm?
Modify IAM policies
Create an S3 bucket
Send a notification via Amazon SNS
Stop an EC2 instance
Which alarm state indicates that the metric is within the defined threshold?
IN_ALARM
OK
PENDING
UNKNOWN
You want to list EC2 instances that have a given tag. Which command should you use?
"aws ec2 list-instances" with tag filters
"aws ec2 get-tags" with tag filters
"aws ec2 show-tags" with tag filters
"aws ec2 describe-instances" with tag filters
Which AWS CLI command is used to ADD or UPDATE tags on an EC2 instance?
aws ec2 create-tags
aws ec2 add-tags
aws ec2 update-tags
aws ec2 tag-instance
Which section is used to configure a resource after specifying its type?
Metadata
DependsOn
Properties
Outputs
