exam questions

Exam CAS-004 All Questions

View all questions & answers for the CAS-004 exam

Exam CAS-004 topic 1 question 376 discussion

Actual exam question from CompTIA's CAS-004
Question #: 376
Topic #: 1
[All CAS-004 Questions]

A company recently implemented a CI/CD pipeline and is now concerned with the current state of its software development processes. The company wants to augment its CI/CD pipeline with a solution to:

• Prevent code configuration drifts.
• Ensure coding standards are followed.

Which of the following should the company implement to address these concerns? (Choose two.)

  • A. Code signing
  • B. Fuzzers
  • C. Dynamic code analysis
  • D. Manual approval processes
  • E. Linters
  • F. Regression testing
Show Suggested Answer Hide Answer
Suggested Answer: CE 🗳️

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
nuel_12
Highly Voted 1 year, 5 months ago
Selected Answer: EF
E: linters will ensure good coding practice are implement Linters are tools that analyze the source code of a software program and check for errors, bugs, style, or quality issues. Linters can help developers write better, cleaner, and more consistent code, as well as prevent potential security vulnerabilities or performance problems. Linters can be integrated with various development environments, such as IDEs, editors, or CI/CD pipelines, and can be configured with different rules and standards, depending on the programming language, framework F: regression testing will prevent code configuration drift, unauthorized modification
upvoted 6 times
...
ElDirec
Highly Voted 1 year, 2 months ago
Selected Answer: CE
The company should implement E. Linters and C. Dynamic code analysis to address these concerns. Linters are tools that analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs. They can be used to ensure that coding standards are followed and help prevent code configuration drifts. Dynamic code analysis is a method of debugging by examining the code while the program is running. This can provide insight into the code’s behavior, data inputs and outputs, and operational performance, helping to ensure that coding standards are followed and prevent code configuration drifts. While the other options (Code signing, Fuzzers, Manual approval processes, Regression testing) can provide some level of security and quality assurance, they do not directly address the specific concerns of preventing code configuration drifts and ensuring coding standards are followed.
upvoted 5 times
...
Bright07
Most Recent 1 month, 1 week ago
Selected Answer: CE
C. Dynamic code analysis: Dynamic code analysis involves testing and evaluating code during execution. It can help identify configuration drifts by detecting runtime issues, misconfigurations, or deviations from expected behavior in the deployed environment. E. Linters: Linters are tools that analyze source code to flag programming errors, bugs, stylistic issues, and deviations from coding standards. They help ensure that coding standards are consistently followed across the codebase.
upvoted 1 times
...
Bright07
1 month, 1 week ago
Selected Answer: CE
E. Linters: Linters are tools that analyze code for potential errors, coding style violations, and other issues related to coding standards. They help ensure that code adheres to predefined standards and best practices, preventing inconsistent or incorrect code from being introduced into the codebase. C. Dynamic code analysis: Dynamic code analysis involves running the application and analyzing its behavior during runtime to detect issues such as memory leaks, performance problems, or security vulnerabilities. This can help identify deviations in code behavior that could indicate configuration drifts or issues that were not caught during static analysis.
upvoted 1 times
...
EAlonso
9 months, 2 weeks ago
CD, All of them, just taken two, C as a tool and D as a policy. "Configuration drift occurs when an environment’s setup unwittingly shifts away from its intended state. Causes of configuration drift can be hundreds, but primarily due to undocumented ad hoc changes in software or hardware." "When you have multiple engineers and teams interacting with this infrastructure ad hoc and not following the right protocols, these micro-changes can pile up quickly, creating inconsistencies between your current system’s configuration and the baseline of how it should look. This is how configuration drift happens: changes are implemented in an improper way causing issues for your infrastructure over time."
upvoted 1 times
...
041ba31
11 months ago
Selected Answer: CE
The best solutions to implement in order to address concerns of preventing code configuration drifts and ensuring coding standards are followed are: E. Linters: Linters analyze source code to flag programming errors, bugs, stylistic errors, and suspicious constructs, ensuring that coding standards are followed. C. Dynamic code analysis: Dynamic code analysis involves executing the code to identify issues that occur during runtime, helping to prevent code configuration drifts and ensuring the software behaves as expected.
upvoted 5 times
...
Potato42
1 year, 4 months ago
Selected Answer: EF
I agree that it's E and F. It wasn't obvious at first but now I am convinced.
upvoted 2 times
...
OdinAtlasSteel
1 year, 4 months ago
Selected Answer: EF
Changing my answer to E,F after additional research.
upvoted 4 times
...
OdinAtlasSteel
1 year, 4 months ago
Selected Answer: CE
While the other options listed (Code signing, Fuzzers, Manual approval processes, Regression testing) are valuable in certain contexts for enhancing software security and quality, they are not directly focused on preventing code configuration drifts or enforcing coding standards within the CI/CD pipeline as effectively as dynamic code analysis and linters.
upvoted 3 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