0
0
AWScloud~10 mins

What is cloud computing in AWS - Interactive Quiz & Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a virtual server in the cloud using AWS EC2.

AWS
ec2 = boto3.resource('ec2')
instance = ec2.create_instances(ImageId='ami-0abcdef1234567890', MinCount=1, MaxCount=1, InstanceType='[1]')
Drag options to blanks, or click blank then click option'
At2.micro
Bm5.large
Cc5.xlarge
Dr5.2xlarge
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a large instance type unnecessarily increases cost.
Using an invalid instance type string causes errors.
2fill in blank
medium

Complete the code to upload a file to AWS S3 bucket.

AWS
s3 = boto3.client('s3')
s3.upload_file('localfile.txt', '[1]', 'remote.txt')
Drag options to blanks, or click blank then click option'
Amy-bucket
Bmybucket
Cmy_bucket
Dmy.bucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores in bucket names causes errors.
Using dots incorrectly in bucket names is invalid.
3fill in blank
hard

Fix the error in the code to launch an EC2 instance with a key pair.

AWS
ec2 = boto3.resource('ec2')
instance = ec2.create_instances(ImageId='ami-0abcdef1234567890', MinCount=1, MaxCount=1, KeyName='[1]')
Drag options to blanks, or click blank then click option'
Amy keypair
Bmy_keypair
Cmy-keypair
Dmy.keypair
Attempts:
3 left
💡 Hint
Common Mistakes
Using spaces in key pair names causes errors.
Using dots in key pair names is invalid.
4fill in blank
hard

Fill both blanks to define an AWS Lambda function with correct runtime and handler.

AWS
lambda_client.create_function(FunctionName='MyFunction', Runtime='[1]', Handler='[2]', Role='arn:aws:iam::123456789012:role/lambda-role', Code={'ZipFile': b'function code bytes'})
Drag options to blanks, or click blank then click option'
Apython3.9
Bindex.handler
Capp.lambda_handler
Dnodejs14.x
Attempts:
3 left
💡 Hint
Common Mistakes
Mismatching runtime and handler causes deployment errors.
Using wrong handler format causes function invocation failures.
5fill in blank
hard

Fill all three blanks to create an AWS IAM policy statement allowing S3 read access.

AWS
{
  'Effect': '[1]',
  'Action': '[2]',
  'Resource': '[3]'
}
Drag options to blanks, or click blank then click option'
AAllow
BDeny
Cs3:GetObject
Darn:aws:s3:::example-bucket/*
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Deny' instead of 'Allow' blocks access.
Incorrect action or resource ARN causes permission errors.