Quiz
cad6
Create a free account to finish this quiz
Save your progress and see your final score.
Already have an account? Sign in
Questions in this quiz (65)
1A developer has created a Docker image and uploaded it to an Amazon Elastic Container Registry (ECR) repository. How can the
developer pull the image to his workstation using the docker client?- ARun aws ecr get-login-password use the output to login in then issue a docker pull command specifying the image
name using registry/repository[:tag] - BRun the docker pull command specifying the image name using registry/repository[:tag]
- CRun aws ecr describe-images --repository-name repositoryname
- DRun docker login with an IAM key pair then issue a docker pull command specifying the image name using
registry/repository[@digest]
- ARun aws ecr get-login-password use the output to login in then issue a docker pull command specifying the image
2A company is designing a new application that will store thousands of terabytes of data. They need a fully managed NoSQL data
store that provides low-latency and can store key-value pairs. Which type of database should they use?- AAmazon RDS
- BAmazon ElastiCache
- CAmazon S3
- DAmazon DynamoDB
3The manager of a development team is setting up a shared S3 bucket for team members. The manager would like to use a
single policy to allow each user to have access to their objects in the S3 bucket. Which feature can be used to generalize the
policy?- APrincipal
- BCondition
- CVariable
- DResource
4An independent software vendor (ISV) uses Amazon S3 and Amazon CloudFront to distribute software updates. They would like
to provide their premium customers with access to updates faster. What is the MOST efficient way to distribute these updates
only to the premium customers? (Select TWO.)- ACreate a signed cookie and associate it with the Amazon S3 distribution
- BCreate a signed URL with access to the content and distribute it to the premium customers
- CUse an access control list (ACL) on the Amazon S3 bucket to restrict access based on IP address
- DCreate an origin access identity (OAI) and associate it with the distribution and configure permissions
- EUse an IAM policy to restrict access to the content using a condition attribute and specify the IP addresses of the
premium customers
5An Amazon RDS database is experiencing a high volume of read requests that are slowing down the database. Which fully
managed, in-memory AWS database service can assist with offloading reads from the RDS database?- AAmazon RDS Read Replica
- BAmazon Aurora Serverless
- CAmazon ElastiCache Redis
- DMemcached on Amazon EC2
6A developer is creating a multi-tier web application. The front-end will place messages in an Amazon SQS queue for the backend
to process. Each job includes a file that is 1GB in size. What MUST the developer do to ensure this works as expected?- AIncrease the maximum message size of the queue from 256KB to 1GB
- BStore the large files in DynamoDB and use the SQS Extended Client Library for Java to manage SQS messages
- CCreate a FIFO queue that supports large files
- DStore the large files in Amazon S3 and use the SQS Extended Client Library for Java to manage SQS messages
7A serverless application composed of multiple Lambda functions has been deployed. A developer is setting up AWS CodeDeploy
to manage the deployment of code updates. The developer would like a 10% of the traffic to be shifted to the new version in
equal increments, 10 minutes apart.
Which setting should be chosen for configuring how traffic is shifted?- ACanary
- BLinear
- CAll-at-once
- DBlue/green
8A company has a global presence and managers must submit large quantities of reporting data to an Amazon S3 bucket located
in the us-east-1 region on weekly basis. Uploads have been slow recently, how can you improve data throughput and upload
times?- AEnable S3 Transfer Acceleration on the S3 bucket
- BUse S3 Multi-part upload
- CCreate an AWS Direct Connect connection from each remote office
- DUse an AWS Managed VPN
9A developer is building a Docker application on Amazon ECS that will use an Application Load Balancer (ALB). The developer
needs to configure the port mapping between the host port and container port. Where is this setting configured?- AHost definition
- BTask definition
- CService scheduler
- DContainer instance
10A developer is designing a web application that will be used by thousands of users. The users will sign up using their email
addresses and the application will store attributes for each user.
Which service should the developer use to enable users to sign-up for the web application?- AAmazon Cognito Sync
- BAmazon Cognito user pool
- CAWS Inspector
- DAWS AppSync
11An application resizes images that are uploaded to an Amazon S3 bucket. Amazon S3 event notifications are used to trigger an
AWS Lambda function that resizes the images. The processing time for each image is less than one second. A large amount of
images are expected to be received in a short burst of traffic. How will AWS Lambda accommodate the workload?- ALambda will scale out and execute the requests concurrently
- BLambda will process the images sequentially in the order they are received
- CLambda will collect and then batch process the images in a single execution
- DLambda will scale the memory allocated to the function to increase the amount of CPU available to process many
images
12A Developer is creating multiple AWS Lambda functions that will be using an external library that is not included in the standard
Lambda libraries. What is the BEST way to make these libraries available to the functions?- AInclude the external library with the function code
- BCreate a deployment package that includes the external library
- CStore the files in Amazon S3 and reference them from your function code
- DCreate a layer in Lambda that includes the external library
13A Developer is creating a social networking app for games that uses a single Amazon DynamoDB table. All users’ saved game
data is stored in the single table, but users should not be able to view each other’s data.
How can the Developer restrict user access so they can only view their own data?- ARestrict access to specific items based on certain primary key values
- BUse separate access keys for each user to call the API and restrict access to specific items based on access key ID
- CUse an identity-based policy that restricts read access to the table to specific principals
- DRead records from DynamoDB and discard irrelevant data client-side
14A Development team are developing a micro-services application that will use Docker containers on Amazon ECS. There will be
6 distinct services included in the architecture. Each service requires specific permissions to various AWS services.
What is the MOST secure way to grant the services the necessary permissions?- ACreate a new Identity and Access Management (IAM) instance profile containing the required permissions for the
various ECS services, then associate that instance role with the underlying EC2 instances - BCreate six separate IAM roles, each containing the required permissions for the associated ECS service, then configure
each ECS task definition to reference the associated IAM role - CCreate six separate IAM roles, each containing the required permissions for the associated ECS service, then create an
IAM group and configure the ECS cluster to reference that group - DCreate a single IAM policy and use principal statements referencing the ECS tasks and assigning the required
permissions, then apply the policy to the ECS service
- ACreate a new Identity and Access Management (IAM) instance profile containing the required permissions for the
15A company is reviewing their security practices. According to AWS best practice, how should access keys be managed to
improve security? (Select TWO.)- ADelete all access keys for the root account IAM user
- BEmbed access keys directly into code
- CRotate access keys daily
- DUse different access keys for different applications
- EUse the same access key in all applications for consistency
16A Developer is creating an application that will utilize an Amazon DynamoDB table for storing session data. The data being
stored is expected to be around 4.5KB in size and the application will make 20 eventually consistent reads/sec, and 12 standard
writes/sec.
How many RCUs/WCUs are required?- A40 RCU and 60 WCU
- B20 RCU and 60 WCU
- C40 RCU and 120 WCU
- D10 RCU and 24 WCU
17A monitoring application that keeps track of a large eCommerce website uses Amazon Kinesis for data ingestion. During periods
of peak data rates, the producers are not making best use of the available shards.
What step will allow the producers to better utilize the available shards and increase write throughput to the Kinesis data
stream?- AInstall the Kinesis Producer Library (KPL) for ingesting data into the stream
- BCreate an SQS queue and decouple the producers from the Kinesis data stream
- CIncrease the shard count of the stream using UpdateShardCount
- DIngest multiple records into the stream in a single call using BatchWriteItem
18A Developer is creating an AWS Lambda function that will process medical images. The function is dependent on several
libraries that are not available in the Lambda runtime environment. Which strategy should be used to create the Lambda
deployment package?- ACreate a ZIP file with the source code and all dependent libraries
- BCreate a ZIP file with the source code and a script that installs the dependent libraries at runtime
- CCreate a ZIP file with the source code. Stage the dependent libraries on an Amazon S3 bucket indicated by the
Lambda environment variable LIBRARY_PATH - DCreate a ZIP file with the source code and a buildspec.yaml file that installs the dependent libraries on AWS Lambda
19A company use Amazon CloudFront to deliver application content to users around the world. A Developer has made an update
to some files in the origin however users have reported that they are still getting the old files.
How can the Developer ensure that the old files are replaced in the cache with the LEAST disruption?- AInvalidate the files from the edge caches
- BCreate a new origin with the new files and remove the old origin
- CDisable the CloudFront distribution and enable it again to update all the edge locations
- DAdd code to Lambda@Edge that updates the files in the cache
20A Developer is creating a serverless website with content that includes HTML files, images, videos, and JavaScript (client-side
scripts).
Which combination of services should the Developer use to create the website?- AAmazon S3 and Amazon CloudFront
- BAmazon EC2 and Amazon ElastiCache
- CAmazon ECS and Redis
- DAWS Lambda and Amazon API Gateway
21A Developer needs to update an Amazon ECS application that was deployed using AWS CodeDeploy. What file does the
Developer need to update to push the change through CodeDeploy?- Adockerrun.aws.json
- Bbuildspec.yml
- Cappspec.yml
- Debextensions.config
22A Development team wants to instrument their code to provide more detailed information to AWS X-Ray than simple outgoing
and incoming requests. This will generate large amounts of data, so the Development team wants to implement indexing so
they can filter the data.
What should the Development team do to achieve this?- AAdd metadata to the segment document
- BConfigure the necessary X-Ray environment variables
- CInstall required plugins for the appropriate AWS SDK
- DAdd annotations to the segment document
23An organization has an Amazon S3 bucket containing premier content that they intend to make available to only paid
subscribers of their website. The objects in the S3 bucket are private to prevent inadvertent exposure of the premier content to
non-paying website visitors.
How can the organization provide only paid subscribers the ability to download the premier content in the S3 bucket?- AApply a bucket policy that grants anonymous users to download the content from the S3 bucket
- BGenerate a pre-signed object URL for the premier content file when a paid subscriber requests a download
- CAdd a bucket policy that requires Multi-Factor Authentication for requests to access the S3 bucket objects
- DEnable server-side encryption on the S3 bucket for data protection against the non-paying website visitors
24A serverless application uses Amazon API Gateway, AWS Lambda and DynamoDB. The application writes statistical data that is
constantly received from sensors. The data is analyzed soon after it is written to the database and is then not required.
What is the EASIEST method to remove stale data and optimize database size?- AEnable the TTL attribute and add expiry timestamps to items
- BUse atomic counters to decrement the data when it becomes stale
- CScan the table for stale data and delete it once every hour
- DDelete the table and recreate it every hour
25A Development team are creating a financial trading application. The application requires sub-millisecond latency for processing
trading requests. Amazon DynamoDB is used to store the trading data. During load testing the Development team found that in
periods of high utilization the latency is too high and read capacity must be significantly over-provisioned to avoid throttling.
How can the Developers meet the latency requirements of the application?- AUse Amazon DynamoDB Accelerator (DAX) to cache the data
- BCreate a Global Secondary Index (GSI) for the trading data
- CUse exponential backoff in the application code for DynamoDB queries
- DStore the trading data in Amazon S3 and use Transfer Acceleration
26A Developer is deploying an Amazon EC2 update using AWS CodeDeploy. In the appspec.yml file, which of the following is a
valid structure for the order of hooks that should be specified?- ABeforeInstall > AfterInstall > AfterAllowTestTraffic > BeforeAllowTraffic > AfterAllowTraffic
- BBeforeInstall > AfterInstall > ApplicationStart > ValidateService
- CBeforeAllowTraffic > AfterAllowTraffic
- DBeforeBlockTraffic > AfterBlockTraffic > BeforeAllowTraffic > AfterAllowTraffic
27An application will ingest data at a very high throughput from several sources and stored in an Amazon S3 bucket for
subsequent analysis. Which AWS service should a Developer choose for this requirement?- AAmazon Kinesis Data Firehose
- BAmazon S3 Transfer Acceleration
- CAmazon Kinesis Data Analytics
- DAmazon Simple Queue Service (SQS)
28A mobile application has thousands of users. Each user may use multiple devices to access the application. The Developer wants
to assign unique identifiers to these users regardless of the device they use.
Which of the below is the BEST method to obtain unique identifiers?- ACreate a user table in Amazon DynamoDB with key-value pairs of users and their devices. Use these keys as unique
identifiers - BUse IAM-generated access key IDs for the users as the unique identifier, but do not store secret keys
- CImplement developer-authenticated identities by using Amazon Cognito and get credentials for these identities
- DAssign IAM users and roles to the users. Use the unique IAM resource ID as the unique identifier
- ACreate a user table in Amazon DynamoDB with key-value pairs of users and their devices. Use these keys as unique
29A manufacturing company is creating a new RESTful API that their customers can use to query the status of orders. The
endpoint for customer queries will be https://www.manufacturerdomain.com/status/customerID Which of the following application designs will meet the requirements? (Select TWO.)- AAmazon SQS; Amazon SNS
- BElastic Load Balancing; Amazon EC2
- CAmazon ElastiCache; Amazon Elacticsearch Service
- DAmazon API Gateway; AWS Lambda
- EAmazon S3; Amazon CloudFront
30A solution requires a serverless service for receiving streaming data and loading it directly into an Amazon Elasticsearch
datastore. Which AWS service would be suitable for this requirement?- AAmazon Kinesis Data Streams
- BAmazon Kinesis Data Analytics
- CAmazon Kinesis Data Firehose
- DAmazon Simple Queue Service (SQS)
31A serverless application uses an AWS Lambda function, Amazon API Gateway API and an Amazon DynamoDB table. The Lambda
function executes 10 times per second and takes 3 seconds to complete each execution.
How many concurrent executions will the Lambda function require?- A3
- B12
- C10
- D30
32An application that is being migrated to AWS and refactored requires a storage service. The storage service should provide a
standards-based REST web service interface and store objects based on keys.
Which AWS service would be MOST suitable?- AAmazon S3
- BAmazon DynamoDB
- CAmazon EBS
- DAmazon EFS
33A company will be hiring a large number of Developers for a series of projects. The Develops will bring their own devices to
work and the company want to ensure consistency in tooling. The Developers must be able to write, run, and debug
applications with just a browser, without needing to install or maintain a local Integrated Development Environment (IDE).
Which AWS service should the Developers use?- AAWS CodeCommit
- BAWS Cloud9
- CAWS X-Ray
- DAWS CodeDeploy
34Development team manage a hybrid cloud environment. They would like to collect system-level metrics from on-premises servers and Amazon EC2 instances. How can the Development team collect this information MOST efficiently?
- AUse CloudWatch for monitoring EC2 instances and custom AWS CLI scripts using the put-metric-data API
- BInstall the CloudWatch agent on the on-premises servers and EC2 instances
- CInstall the CloudWatch agent on the EC2 instances and use a cron job on the on-premises servers
- DUse CloudWatch detailed monitoring for both EC2 instances and on-premises servers
35A Developer is migrating Docker containers to Amazon ECS. A large number of containers will be deployed onto an existing ECS
cluster that uses container instances of different instance types.
Which task placement strategy can be used to minimize the number of container instances used based on available memory?- Abinpack
- Brandom
- Cspread
- DdistinctInstance
36An organization has encrypted a large quantity of data. To protect their data encryption keys they are planning to use envelope
encryption. Which of the following processes is a correct implementation of envelope encryption?- AEncrypt plaintext data with a data key and then encrypt the data key with a top-level plaintext master key.
- BEncrypt plaintext data with a master key and then encrypt the master key with a top-level plaintext data key
- CEncrypt plaintext data with a data key and then encrypt the data key with a top-level encrypted master key
- DEncrypt plaintext data with a master key and then encrypt the master key with a top-level encrypted data key
37A mobile application runs as a serverless application on AWS. A Developer needs to create a push notification feature that
sends periodic message to subscribers. How can the Developer send the notification from the application?- APublish a message to an Amazon SQS Queue
- BPublish a notification to Amazon CloudWatch Events
- CPublish a notification to an Amazon SNS Topic
- DPublish a message to an Amazon SWF Workflow
38An Amazon ElastiCache cluster has been placed in front of a large Amazon RDS database. To reduce cost the ElastiCache cluster
should only cache items that are actually requested. How should ElastiCache be optimized?- AOnly cache database writes
- BEnable a TTL on cached data
- CUse a write-through caching strategy
- DUse a lazy loading caching strategy
39A retail organization stores stock information in an Amazon RDS database. An application reads and writes data to the
database. A Developer has been asked to provide read access to the database from a reporting application in another region.
Which configuration would provide BEST performance for the reporting application without impacting the performance of the
main database?- AImplement a cross-region multi-AZ deployment in the region where the reporting application will run
- BCreate a snapshot of the database and create a new database from the snapshot in the region where the reporting
application will run - CImplement a cross-region read replica in the region where the reporting application will run
- DImplement a read replica in another AZ and configure the reporting application to connect to the read replica using a
VPN connection
40An Auto Scaling Group (ASG) of Amazon EC2 instances is being created for processing messages from an Amazon SQS queue. To
ensure the EC2 instances are cost-effective a Developer would like to configure the ASG to maintain aggregate CPU utilization
at 70%.
Which type of scaling policy should the Developer choose?- AStep Scaling Policy
- BSimple Scaling Policy
- CScheduled Scaling Policy
- DTarget Tracking Scaling Policy
41An application collects data from sensors in a manufacturing facility. The data is stored in an Amazon SQS Standard queue by an
AWS Lambda function and an Amazon EC2 instance processes the data and stores it in an Amazon RedShift data warehouse. A
fault in the sensors’ software is causing occasional duplicate messages to be sent. Timestamps on the duplicate messages show
they are generated within a few seconds of the primary message.
How a can a Developer prevent duplicate data being stored in the data warehouse?- AUse a FIFO queue and configure the Lambda function to add a message deduplication token to the message body
- BUse a FIFO queue and configure the Lambda function to add a message group ID to the messages generated by each
individual sensor - CSend a ChangeMessageVisibility call with VisibilityTimeout set to 30 seconds after the receipt of every message from
the queue - DConfigure a redrive policy, specify a destination Dead-Letter queue, and set the maxReceiveCount to 1
42A Developer is publishing custom metrics for Amazon EC2 using the Amazon CloudWatch CLI. The Developer needs to add
further context to the metrics being published by organizing them by EC2 instance and Auto Scaling Group.
What should the Developer add to the CLI command when publishing the metrics using put-metric-data- AThe --dimensions parameter
- BThe --namespace parameter
- CThe --statistic-values parameter
- DThe --metric-name parameter
43A legacy application is being refactored into a microservices architecture running on AWS. The microservice will include several
AWS Lambda functions. A Developer will use AWS Step Functions to coordinate function execution.
How should the Developer proceed?- ACreate an AWS CloudFormation stack using a YAML-formatted template
- BCreate a state machine using the Amazon States Language
- CCreate a workflow using the StartExecution API action
- DCreate a layer in AWS Lambda and add the functions to the layer
44A company has sensitive data that must be encrypted. The data is made up of 1 GB objects and there is a total of 150 GB of
data.
What is the BEST approach for a Developer to encrypt the data using AWS KMS?- AMake an Encrypt API call to encrypt the plaintext data as ciphertext using a customer master key (CMK)
- BMake an Encrypt API call to encrypt the plaintext data as ciphertext using a customer master key (CMK) with imported
key material - CMake a GenerateDataKey API call that returns a plaintext key and an encrypted copy of a data key. Use the plaintext
key to encrypt the data - DMake a GenerateDataKeyWithoutPlaintext API call that returns an encrypted copy of a data key. Use the encrypted
key to encrypt the data
45A nightly batch job loads 1 million new records in to a DynamoDB table. The records are only needed for one hour, and the
table needs to be empty by the next night’s batch job.
Which is the MOST efficient and cost-effective method to provide an empty table?- AUse DeleteItem using a ConditionExpression
- BUse BatchWriteItem to empty all of the rows
- CWrite a recursive function that scans and calls out DeleteItem
- DCreate and then delete the table after the task has completed
46A Developer is creating an AWS Lambda function to process a stream of data from an Amazon Kinesis Data Stream. When the
Lambda function parses the data and encounters a missing field, it exits the function with an error. The function is generating
duplicate records from the Kinesis stream. When the Developer looks at the stream output without the Lambda function, there
are no duplicate records.
What is the reason for the duplicates?- AThe Lambda function did not advance the Kinesis stream point to the next record after the error
- BThe Lambda event source used asynchronous invocation, resulting in duplicate records
- CThe Lambda function did not handle the error, and the Lambda service attempted to reprocess the data
- DThe Lambda function is not keeping up with the amount of data coming from the stream
47A Developer has code running on Amazon EC2 instances that needs read-only access to an Amazon DynamoDB table.
What is the MOST secure approach the Developer should take to accomplish this task?- ACreate a user access key for each EC2 instance with read-only access to DynamoDB. Place the keys in the code.
Redeploy the code as keys rotate - BUse an IAM role with an AmazonDynamoDBReadOnlyAccess policy applied to the EC2 instances
- CRun all code with only AWS account root user access keys to ensure maximum access to services
- DUse an IAM role with Administrator access applied to the EC2 instance
- ACreate a user access key for each EC2 instance with read-only access to DynamoDB. Place the keys in the code.
48A company is migrating an on-premises web application to AWS. The web application runs on a single server and stores session
data in memory. On AWS the company plan to implement multiple Amazon EC2 instances behind an Elastic Load Balancer
(ELB). The company want to refactor the application so that data is resilient if an instance fails and user downtime is minimized.
Where should the company move session data to MOST effectively reduce downtime and make users’ session data more fault
tolerant?- AAn Amazon ElastiCache for Redis cluster
- BA second Amazon EBS volume
- CThe web server’s primary disk
- DAn Amazon EC2 instance dedicated to session data
49A Developer is creating a script to automate the deployment process for a serverless application. The Developer wants to use
an existing AWS Serverless Application Model (SAM) template for the application.
What should the Developer use for the project? (Select TWO.)- ACall aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the
package afterward - BCall sam package to create the deployment package. Call sam deploy to deploy the package afterward
- CCall aws s3 cp to upload the AWS SAM template to Amazon S3. Call aws lambda update-function-code to create the
application - DCreate a ZIP package locally and call aws serverlessrepo create-application to create the application
- ECreate a ZIP package and upload it to Amazon S3. Call aws cloudformation create-stack to create the application
- ACall aws cloudformation package to create the deployment package. Call aws cloudformation deploy to deploy the
50A website delivers images stored in an Amazon S3 bucket. The site uses Amazon Cognito-enabled and guest users without
logins need to be able to view the images from the S3 bucket. How can a Developer enable access for guest users to the AWS resources?- ACreate a blank user ID in a user pool, add to the user group, and grant access to AWS resources
- BCreate a new identity pool, enable access to unauthenticated identities, and grant access to AWS resources
- CCreate a new user pool, enable access to unauthenticated identities, and grant access to AWS resources
- DCreate a new user pool, disable authentication access, and grant access to AWS resources
51A company has a website that is developed in PHP and WordPress and is launched using AWS Elastic Beanstalk. There is a new
version of the website that needs to be deployed in the Elastic Beanstalk environment. The company cannot tolerate having the
website offline if an update fails. Deployments must have minimal impact and rollback as soon as possible.
What deployment method should be used?- AAll at once
- BRolling
- CSnapshots
- DImmutable
52A company is building an application to track athlete performance using an Amazon DynamoDB table. Each item in the table is
identified by a partition key (user_id) and a sort key (sport_name). The table design is shown below:
• Partition key: user_id
• Sort Key: sport_name
• Attributes: score, score_datetime
A Developer is asked to write a leaderboard application to display the top performers (user_id) based on the score for each
sport_name.
What process will allow the Developer to extract results MOST efficiently from the DynamoDB table?- AUse a DynamoDB query operation with the key attributes of user_id and sport_name and order the results based on
the score attribute - BCreate a global secondary index with a partition key of sport_name and a sort key of score, and get the results
- CUse a DynamoDB scan operation to retrieve scores and user_id based on sport_name, and order the results based on
the score attribute - DCreate a local secondary index with a primary key of sport_name and a sort key of score and get the results based on
the score attribute
- AUse a DynamoDB query operation with the key attributes of user_id and sport_name and order the results based on
53A Developer wants the ability to roll back to a previous version of an AWS Lambda function in the event of errors caused by a
new deployment.
How can the Developer achieve this with MINIMAL impact on users?- AChange the application to use an alias that points to the current version. Deploy the new version of the code. Update
the alias to use the newly deployed version. If too many errors are encountered, point the alias back to the previous
version - BChange the application to use an alias that points to the current version. Deploy the new version of the code. Update
the alias to direct 10% of users to the newly deployed version. If too many errors are encountered, send 100% of
traffic to the previous version - CChange the application to use a version ARN that points to the latest published version. Deploy the new version of the
code. Update the application to point to the ARN of the new version of the code. If too many errors are encountered,
point the application back to the ARN of the previous version - DChange the application to use the $LATEST version. Update and save code. If too many errors are encountered,
modify and save the code
- AChange the application to use an alias that points to the current version. Deploy the new version of the code. Update
54A company is migrating an application with a website and MySQL database to the AWS Cloud. The company require the
application to be refactored so it offers high availability and fault tolerance.
How should a Developer refactor the application? (Select TWO.)- AMigrate the website to an Auto Scaling group of EC2 instances across a single AZ and use an Elastic Load Balancer
- BMigrate the website to an Auto Scaling group of EC2 instances across multiple AZs and use an Elastic Load Balancer
- CMigrate the MySQL database to an Amazon RDS instance with a Read Replica in another AZ
- DMigrate the MySQL database to an Amazon RDS Multi-AZ deployment
- EMigrate the MySQL database to an Amazon DynamoDB with Global Tables
55A company runs many microservices applications that use Docker containers. The company are planning to migrate the
containers to Amazon ECS. The workloads are highly variable and therefore the company prefers to be charged per running
task.
Which solution is the BEST fit for the company’s requirements?- AAmazon ECS with the EC2 launch type
- BAmazon ECS with the Fargate launch type
- CAn Amazon ECS Service with Auto Scaling
- DAn Amazon ECS Cluster with Auto Scaling
56A company has hired a team of remote Developers. The Developers need to work programmatically with AWS resources from
their laptop computers.
Which security components MUST the Developers use to authenticate? (Select TWO.)- AAccess key ID
- BSecret access key
- CConsole password
- DIAM user ID
- EMFA device
57A Developer created an AWS Lambda function and then attempted to add an on failure destination but received the following
error:
The function's execution role does not have permissions to call SendMessage on arn:aws:sqs:us-east-
1:515148212435:FailureDestination
How can the Developer resolve this issue MOST securely?- AAdd the AWSLambdaSQSQueueExecutionRole AWS managed policy to the function’s execution role
- BCreate a customer managed policy with all read/write permissions to SQS and attach the policy to the function’s
execution role - CAdd a permissions policy to the SQS queue allowing the SendMessage action and specify the AWS account number
- DAdd the Lambda function to a group with administrative privileges
58A Developer is creating an application that uses Amazon EC2 instances and must be highly available and fault tolerant. How
should the Developer configure the VPC?- ACreate multiple subnets within a single availability zone in the region
- BCreate a subnet in each availability zone in the region
- CCreate an Internet Gateway for every availability zone
- DCreate a cluster placement group for the EC2 instances
59A company has released a new application on AWS. The company are concerned about security and require a tool that can
automatically assess applications for exposure, vulnerabilities, and deviations from best practices.
Which AWS service should they use?- AAmazon Inspector
- BAWS Shield
- CAWS WAF
- DAWS Secrets Manager
60A Developer has lost their access key ID and secret access key for programmatic access. What should the Developer do?
- AContact AWS support and request a password reset
- BGenerate a new key pair from the EC2 management console
- CReset the AWS account access keys
- DDisable and delete the user’s access key and generate a new set
61An application includes multiple Auto Scaling groups of Amazon EC2 instances. Each group corresponds to a different
subdomain of example.com, including forum.example.com and myaccount.example.com. An Elastic Load Balancer will be used to distribute load from a single HTTPS listener.
Which type of Elastic Load Balancer MUST a Developer use in this scenario?- AApplication Load Balancer
- BNetwork Load Balancer
- CClassic Load Balancer
- DTask Load Balancer
62A Developer has created a task definition that includes the following JSON code:
"placementConstraints": [
{
"expression": "attribute:ecs.instance-type =~ t2.*",
"type": "memberOf"
}
]
What will be the effect for tasks using this task definition?- AThey will be placed only on container instances using the T2 instance type
- BThey will be placed only on container instances of T2 or T3 instance types
- CThey will be added to distinct instances using the T2 instance type
- DThey will be spread across all instances except for T2 instances
63A Java based application generates email notifications to customers using Amazon SNS. The emails must contain links to access
data in a secured Amazon S3 bucket. What is the SIMPLEST way to maintain security of the bucket whilst allowing the
customers to access specific objects?- AUse the AWS SDK for Java with GeneratePresignedUrlRequest to create a presigned URL
- BUse the AWS SDK for Java to update the bucket Access Control List to allow the customers to access the bucket
- CUse the AWS SDK for Java with the AWS STS service to gain temporary security credentials
- DUse the AWS SDK for Java to assume a role with AssumeRole to gain temporary security credentials
64An application will generate thumbnails from objects uploaded to an Amazon S3 bucket. The Developer has created the bucket
configuration and the AWS Lambda function and has formulated the following AWS CLI command:
aws lambda add-permission --function-name CreateThumbnail --principal s3.amazonaws.com --statement-id s3invoke --action
"lambda:InvokeFunction" --source-arn arn:aws:s3:::digitalcloudbucket-source --source-account 523107438921
What will be achieved by running the AWS CLI command?- AThe Amazon S3 service principal (s3.amazonaws.com) will be granted permissions to perform
the lambda:InvokeFunction action - BThe Lambda function CreateThumbnail will be granted permissions to access the objects in the digitalcloudbucketsource
bucket - CThe Amazon S3 service principal (s3.amazonaws.com) will be granted permissions to perform the create an eventsource
mapping with the digitalcloudbucket-source bucket - DA Lambda function will be created called CreateThumbnail with an Amazon SNS event source mapping that executes
the function when objects are uploaded
- AThe Amazon S3 service principal (s3.amazonaws.com) will be granted permissions to perform
65An application uses Amazon EC2 instances, AWS Lambda functions and an Amazon SQS queue. The Developer must ensure all
communications are within an Amazon VPC using private IP addresses. How can this be achieved? (Select TWO.)- ACreate the Amazon SQS queue within a VPC
- BCreate a VPC endpoint for AWS Lambda
- CAdd the AWS Lambda function to the VPC
- DCreate a VPC endpoint for Amazon SQS
- ECreate a VPN and connect the services to the VPG
Information
- Description
- Selectividad tecnologia Quiz on cad6, created by Parodo TS on 17/07/2022.
- Author
- Parodo TS
- Language
- English
- Views
- 5
- Tags
- Rating
- No ratings yet Rate this quiz