exam questions

Exam AWS Certified DevOps Engineer - Professional DOP-C02 All Questions

View all questions & answers for the AWS Certified DevOps Engineer - Professional DOP-C02 exam

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 88 discussion

A company wants to use a grid system for a proprietary enterprise in-memory data store on top of AWS. This system can run in multiple server nodes in any Linux-based distribution. The system must be able to reconfigure the entire cluster every time a node is added or removed. When adding or removing nodes, an /etc/cluster/nodes.config file must be updated, listing the IP addresses of the current node members of that cluster.

The company wants to automate the task of adding new nodes to a cluster.

What can a DevOps engineer do to meet these requirements?

  • A. Use AWS OpsWorks Stacks to layer the server nodes of that cluster. Create a Chef recipe that populates the content of the /etc/cluster/nodes.config file and restarts the service by using the current members of the layer. Assign that recipe to the Configure lifecycle event.
  • B. Put the file nodes.config in version control. Create an AWS CodeDeploy deployment configuration and deployment group based on an Amazon EC2 tag value for the cluster nodes. When adding a new node to the cluster, update the file with all tagged instances, and make a commit in version control. Deploy the new file and restart the services.
  • C. Create an Amazon S3 bucket and upload a version of the /etc/cluster/nodes.config file. Create a crontab script that will poll for that S3 file and download it frequently. Use a process manager, such as Monit or systemd, to restart the cluster services when it detects that the new file was modified. When adding a node to the cluster, edit the file’s most recent members. Upload the new file to the S3 bucket.
  • D. Create a user data script that lists all members of the current security group of the cluster and automatically updates the /etc/cluster/nodes.config file whenever a new instance is added to the cluster.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
habros
Highly Voted 1 year, 9 months ago
Selected Answer: A
I’ll use config management tool as well. In this case Opsworks (Chef/Puppet).
upvoted 6 times
Exto1124
9 months, 1 week ago
But how the files content (get actual nodes list) is updated in that case?
upvoted 1 times
...
...
thanhnv142
Highly Voted 1 year, 2 months ago
Selected Answer: A
A is correct: <wants to use a grid system> means opswork stacks B, C and D: no mention of opswork stack
upvoted 5 times
...
youonebe
Most Recent 4 months, 1 week ago
Selected Answer: A
AWS OpsWorks services have reached end of life and have been disabled for both new and existing customers. Will this question surface in the exam? https://aws.amazon.com/blogs/mt/migrate-your-aws-opsworks-stacks-to-aws-systems-manager/
upvoted 3 times
...
hayjaykay
6 months, 1 week ago
D. This approach ensures that your nodes.config file is kept up-to-date with minimal manual intervention. The script dynamically adjusts the cluster configuration by reflecting changes in the security group, making the process seamless. Efficient and automated—just the way it should be!
upvoted 1 times
...
Cloudxie
7 months, 3 weeks ago
D is the best
upvoted 1 times
...
Dushank
1 year, 7 months ago
Selected Answer: A
1 The best solution to meet the company's requirements is to use AWS OpsWorks Stacks to layer the server nodes of the cluster. Create a Chef recipe that populates the content of the /etc/cluster/nodes.config file and restarts the service by using the current members of the layer. Assign that recipe to the Configure lifecycle event.
upvoted 2 times
...
rhinozD
1 year, 10 months ago
Selected Answer: A
A is correct. This event occurs on all of the stack's instances when one of the following occurs: An instance enters or leaves the online state. You associate an Elastic IP address with an instance or disassociate one from an instance. You attach an Elastic Load Balancing load balancer to a layer, or detach one from a layer. https://docs.aws.amazon.com/opsworks/latest/userguide/workingcookbook-events.html
upvoted 2 times
...
devnv
1 year, 11 months ago
A is correct
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago