Az-400 Flashcards
Examples of static analysis tools
Sonarqube
white source bolt
PMD
White source bolt
provides license and vulnerabilities details on 3rd party packages in your project
Dynamic analysis
ran against live deployed code. commonly used to run pentests against known vulnerabilities like SQL injection
Examples of Dynamic code analysis tools
owasp ZED ATTACK PROXY (zap)
What should unit tests be built for?
testing a single piece or a core function in isolation.
What test data should be used in unit tests
mock data from a file
what data should be used in integration tests
data hosted on the same DB system as the production environment
When should you make a package
when code can be reused across your projects and the code does not need to be changed ofter
Symantec versioning
in x.x.x format. major breaking change. feature change that is backwards compatible. hotfix or patch
Project type that includes change requests, issues, reviews and risk tracking items
CMMI
what is a burndown report?
tracks work completed and remaining work across teams and sprints
what is a burnup report?
tracks completed work items over teams and sprints
what is a
Cumulative Flow Diagram (CFD)
shows count of work items in each column of a kanban board
lead time
how long a work item goes from being created in backlog to completed
velocity
shows how much work is completed during a sprint
You are automating the build process for a Java-based application by using Azure DevOps. You need to add code coverage testing and publish the outcomes to the pipeline. What should you use?
java - jacoco, cobertura, clover
c++ - bullseye
python - coverage.py
,net/c# - ncover, dotcover
You are designing the development process for your company. You need to recommend a solution for continuous inspection of the company’s code base to locate common code patterns that are known to be problematic. What should you include in the recommendation?
SonarCloud analysis
What should you use for a code quality restriction on a release pipeline?
a pre-deployment approval
How to connect github enterprise to azure active directory
Admin on github account, and on azure create an sso to github
Recommended versioning format
semantic + quality of change | ex 2.1.3-release
service hooks vs service connectors
service hooks: external services act in response to azure devops events
service connector: integrate external services more deeply to azure pipelines
common external connection tool authentication methods
personal access token api token (aka auth tokens)
popular code scanning services
white source bolt and snyk - find and fix open-source vulnerabilities
What is octopus deploy?
devops automation/dependency scanning
mutable vs immutable configuration. What is mutable infrastructure
in place updates, keep existing servers, easier to introduce
mutable vs immutable configuration. What is immutable infrastructure
zero config drift, easy to diagnose, simple rollback and recovery, easy to scale horizontally
declarative vs imperative code. what is Imperative code?
uses statements that change a program’s state. greater form of control, this is the anti-pattern
declarative vs imperative code. what is declarative code?
say the end state, great for immutability, code reuse, understandable code, scalable
What is a DACPAC?
data application code package, it contains no data from the database, just the schema
What is a BACPAC?
backup package for sql. it contains the data and the schema of the database
Use this when working with a BACPAC
use export/import for BACPAC
Use this when working with a DACPAC
extract/publish for DACPAC
What is azure app configuration
it is a way to hold app configurations and pass them to other applications, specifically serverless apps
Two types of release gates
pre-deployment and post deployment
Use this type of release gate after deploying to a staging environment
post deployment gate
What do you need for a blue/green deployment?
Tags, two running environments
How to integrate feature flags into a pipeline
Use launch darkly.
components of azure ad conditional access
set the scope
determine the conditions
make the decision
managed identity
azure resource identity that allows access privileges to other azure resources
system-managed identity
tied to your resource or app and is deleted if the resource is deleted
user-managed identity
standalone user created identity
main way to use azure key vault with azure devops
connect to azure key vault via a service principal
What is azure policy used for?
monitor and enforce rules and standards across your azure resources
can be integrated in azure devops
What are the components of an azure policy?
needs a policy definition - what to evaluate and what action to take
assignment - scope for the policy
initiative - group related policy definitions together
check condition - evaluates compliance every hour
trigger action - based on evaluation results
What is azure defender
security that uses machine learning to determine if there is an attack
Where should diagnostic log storage be sent?
to either log analytics workspace or event hub
Language that Azure monitor uses
kusto query language (kql)
How to setup VM’s with azure monitor
install extension on vm
How to filter with KQL?
where
How to limit results with KQL?
take # where # is the number you want.
How to sort results with KQL?
sort
VM agent limits for Azure Monitor
windows agents can send logs to multiple workspaces, linux can only send to one workspace
What does distributed tracing show?
a unique id to show where the logs came from
Information Visual Studio App Center Analytics can show
active users sessions geographic data devices operating systems languages
get kubernetes credentials at azure cli
az aks get-credentials -g rg_name -n aks-cluster-name
azure monitor integration with dynatrace
provide additional metrics for over 70 types of azure resources
What can azure pricing calculator do?
can give estimate of how much things will cost
How to connect jira with azure devops?
install the azure pipelines jira extension